# -*- coding: utf-8 -*-
import os
from django.conf.urls.defaults import *

#Derivacion de urls generales
urlpatterns = patterns('',
    (r'^', include('salones.portal.urls')),
    (r'^clientes/', include('salones.clientes.urls')),
    (r'^turnos/', include('salones.turnos.urls')),

)

#Linea agregada para manejo de elementos estaticos
PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0]) #Asignamos dinamicamente a esta variable el path del proyecto
urlpatterns += patterns('',
		   (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(PROJECT_PATH,'static'), 'show_indexes': True}),
)